package com.sudu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("聊天实体类")
public class Communication {
    @ApiModelProperty("聊天id")
    private  Integer cationId;
    @ApiModelProperty("用户id")
    private int userId ;
    @ApiModelProperty("聊天对象id")
    private int talkId ;
    @ApiModelProperty("聊天创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd hh:mm:ss" , timezone="GMT+8")
    private Date createTime ;
    @ApiModelProperty("逻辑删除")
    private int isDelete ;
    @ApiModelProperty("是否已读")
    private int isClick ;
    @ApiModelProperty("聊天内容")
    private String content ;
    @ApiModelProperty("第一次链接标识")
    private int connection ;

    // 用户信息
    @ApiModelProperty("用户昵称")
    private String username ;
    @ApiModelProperty("用户头像")
    private String userImg ;

}
